package com.lingjtx.auth.service;

import com.lingjtx.auth.po.UpdatePswPo;
import com.lingjtx.common.core.handle.CallbackHandle;
import com.lingjtx.common.security.model.LoginPo;

public interface UserHandleService<T> extends CallbackHandle {

    default String getUserType() {
        return "";
    }

    T getUserInfo();

    // 旧密码修改新密码
    boolean updatePassword(UpdatePswPo model);

    // 更改手机号码
    boolean updateMobile(UpdatePswPo model);

    // 更新用户信息
    boolean updateUserInfo(T model);

    // 注销账号
    boolean deleteAccount(LoginPo model);
}
